package com.ruoyi.work.domain;

import java.util.Date;
import java.util.List;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ruoyi.common.annotation.Excel;
import io.swagger.annotations.ApiModelProperty;
import com.ruoyi.common.core.domain.BaseEntity;
import lombok.Data;

/**
 * 工单对象 t_work_order
 *
 * @author xwj
 * @date 2024-08-13
 */
@TableName("t_work_order")
@Data
public class WorkOrder extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    private Long id;

    /**
     * 工单名称
     */
    @Excel(name = "工单名称")
    @ApiModelProperty("工单名称")
    private String name;

    private Integer type; // 类型: 1单产品多人；2多产品多人


    /**
     * 创建人id
     */
    @Excel(name = "创建人id")
    @ApiModelProperty("创建人id")
    private Long createId;
    private Date createTime;
    private String createBy;

    /**
     * 更新人id
     */
    @Excel(name = "更新人id")
    @ApiModelProperty("更新人id")
    private Long updateId;
    private Date updateTime;
    private String updateBy;

    /**
     * 删除标志:1删除
     */
    @Excel(name = "删除标志:1删除")
    @ApiModelProperty("删除标志:1删除")
    private Integer deleteFlag;

    /** 明细信息 */
    @TableField(exist = false)
    private List<WorkOrderDetail> workOrderDetailList;

    /** 删除的ID */
    @TableField(exist = false)
    private List<Long> deleteIds;


}
